//
//  TaskWithGetOrders.m
//  DuBai
//
//  Created by lt on 14-3-25.
//  Copyright (c) 2014年 darktm. All rights reserved.
//

#import "TaskWithGetOrders.h"

#import "Orders.h"

@implementation TaskWithGetOrders

-(void)prepare{
    
    NSMutableDictionary *mDic = [NSMutableDictionary dictionary];
    
    [mDic setValue:self.state forKey:@"status"];
    
    [self startAsyncWithParams:nil withMethod:@"POST" withURL:[Configure getOrders]];
}

-(id)parese{
    
    NSMutableArray *ret = [NSMutableArray array];
    
    for (NSDictionary *dic in self.rcvData) {
        Orders *c = [[Orders alloc] initWithReflectData:dic];
        [ret addObject:c];
    }
    
    return ret;
}


@end
